package xin.printk.android.utils;

import android.util.Log;

public class LogUtils {

    private static final String APP_TAG = "LearnAndroid";

    private static final boolean ENABLE = true;

    public static void d(String TAG, String message) {
        if (ENABLE) {
            Log.d(TAG, message);
        }
    }

    public static void d(String message) {
        d(APP_TAG, message);
    }

    public static void e(String TAG, String message) {
        if (ENABLE) {
            Log.e(TAG, message);
        }
    }

    public static void e(String message) {
        e(APP_TAG, message);
    }
}
